<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>社員検索</title>

<script>
	function snameCheck(){
		if(document.snameForm.sname.value==""){
			alert("社員名を入力してください。");
			document.snameForm.sname.focus();		
		}
		document.snameForm.submit();
	}
	
	function sendInfo(SCODE, PASSWD, SLEVEL, SNAME, GCODE, SDATE, EDATE){
		var info = SCODE + " " + PASSWD + " " + SLEVEL + " " + SNAME + " " + GCODE + " " + SDATE + " " + EDATE;
		opener.document.memberModifyForm.value=info;
		self.close();
	}
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="snameForm.text.focus()">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td height="30">&nbsp; 
        <font size="2"><b>社員検索</b></font></td>
    </tr>
    </table>
	
	<form name="snameForm" method="post" action="snameCheckAction.action">
    <table width="390" border="0" cellspacing="0" cellpadding="0">
    <tr><td height="40"></td></tr>
    <tr>
        <td align="center">
            <input type="text" name="sname" value="${sname}" size="20" maxlength="30" style="ime-mode:active;" style="height:15px;padding:2px;">
            <input type="submit" value="検索" onclick="snameCheck()" class="btn" />
        </td>
    </tr>
    <tr><td height="30"></td></tr>
    <tr class="d">
   		<td height="40" align="center">
          	<font color="RED"><b>名前</b></font> で検索してください。<br>
            
        </td>
    </tr>
    <tr><td height="20"></td></tr>
    <tr class="d">
        <td align="center">
        	社員検索<input type="textarea" name="sname"></input>
        </td>
    </tr>
    </table>
    </form>
  

	<s:iterator value="%{snameList}" status="rowStatus">
    <span style="cursor:pointer; display:block; margin-top:10px;" onclick="javascript:sendAddress(
    '<s:property value="SCODE"/>',
    '<s:property value="PASSWD"/>',
    '<s:property value="SLEVEL"/>',
    '<s:property value="GCODE"/>',
    '<s:property value="SDATE"/>',
    '<s:property value="EDATE"/>'
    )">
    <s:property value="SCODE"/>&nbsp;
    <s:property value="PASSWD"/>
    <s:property value="SLEVEL"/>
    <s:property value="GCODE"/>
    <s:property value="SDATE"/>
    <s:property value="EDATE"/>
    </span>
    </s:iterator>
    <div style="text-align:center; margin-top:10px;">
    <a href="javascript:this.close();">閉じる</a>
    </div>
